package jmine.tec.persist.hibernate.filter.support;

import java.io.Serializable;

import org.hibernate.HibernateException;
import org.hibernate.engine.SessionImplementor;
import org.hibernate.id.IdentifierGenerator;

public class HashIdentityGenerator implements IdentifierGenerator {

    private static long counter;
    
    public Serializable generate(SessionImplementor session, Object object) throws HibernateException {
        return counter++;
    }

}
